package net.flydy.ywxcx.wxcloudrun.dao;

import net.flydy.ywxcx.wxcloudrun.model.MerchantCoupon;

import java.util.List;

public interface MerchantCouponMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MerchantCoupon record);

    int insertSelective(MerchantCoupon record);

    MerchantCoupon selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MerchantCoupon record);

    int updateByPrimaryKey(MerchantCoupon record);

    /**
     * 查可兑换的优惠券
     * @param merchantId
     * @return
     */
    List<MerchantCoupon> selectByMerchant(Long merchantId);

}